Skip to content

Declare the zip, zlib, and POSIX extensions for Psalm 7.17 - #164

Merged
PDowney merged 1 commit into
mainfrom
psalm-ext-requirements
Nov 24, 2026
Merged

PDowney merged 1 commit into
mainfrom
psalm-ext-requirements

Conversation

@PDowney

@PDowney PDowney commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Psalm 7.17.0 adds MissingExtensionRequirement, and reports ZipArchive, gzopen/gzwrite/gzclose, and the posix_* calls because composer.json declared none of their extensions. The Psalm job installs the highest dependencies, so it fails on every pull request until this lands.

  • composer.json requires ext-zip and ext-zlib: exports refuse to start without them, and the readme lists both as requirements.
  • ext-posix is a suggest. Database exports need it and are refused without it, but Windows PHP has no POSIX extension, so a require would stop composer install on a Windows development machine. Psalm accepts a suggest.
  • composer.lock has the refreshed content hash only.

Checked locally: composer validate --strict, and Psalm 7.17.0 reports no errors.

🤖 Generated with Claude Code

Psalm 7.17 reports MissingExtensionRequirement for ZipArchive, the gz*
functions, and the posix_* functions. Exports refuse to run without zip
and zlib, so composer.json requires them. Database exports also need
POSIX, but Windows PHP has no POSIX extension, so ext-posix is a suggest
with that reason; Psalm accepts either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to EngineScript Site Exporter!

Before we review:

  • Have you tested your changes with WordPress 7.0+?
  • Are your changes compatible with PHP 8.3+?
  • Have you followed WordPress coding standards?
  • Did you update the CHANGELOG.md if needed?

Security Reminder
This plugin creates site export archives, so please ensure:

  • All user input is properly sanitized
  • All output is properly escaped
  • No security vulnerabilities are introduced

We'll review your PR soon.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@PDowney
PDowney merged commit e287e75 into main Nov 24, 2026
29 checks passed
@PDowney
PDowney deleted the psalm-ext-requirements branch November 24, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant